package cn.ybk.basic.controller;


import cn.ybk.basic.service.EchartService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.io.IOException;
import java.util.Map;

@RestController
@RequestMapping("/echarts")
public class echartsController {

    @Autowired
    private EchartService echartService;

    /**
     * echart 报表
     *
     */
    @GetMapping
    public Map<String,Object> echart() throws IOException {
        return echartService.echart();

    }


}
